#include "point.h"
#include <iostream>

using namespace std;


point::point(){
    xyz[0] = 0; xyz[1] = 0; xyz[2] = 0;
}

point::point(int x_in, int y_in, int z_in){
    xyz[0] = x_in; xyz[1] = y_in; xyz[2] = z_in;
}

point::point(cv::Point3i xyz_in){
    xyz = xyz_in;
}

void point::set_xyz(int x_in, int y_in, int z_in){
    xyz[0] = x_in; xyz[1] = y_in; xyz[2] = z_in;
}

void point::set_xyz(cv::Point3i xyz_in){
    xyz = xyz_in;
}

cv::Point3i point::get_xyz(){
    cv::Vec3b out_xyz;
    out_xyz[0] = xyz[0];
    out_xyz[1] = xyz[1];
    out_xyz[2] = xyz[2];
    return out_xyz;
}

void point::print(){
    cv::Point3i location = this->get_xyz();
    cout << "point at " << "( " << static_cast<int>(location.val[0]) << ", " << static_cast<int>(location.val[1]) << ", " << static_cast<int>(location.val[2]) << " )\n";
}
